package com.aaa.controller;

import com.aaa.service.ITabClassService;
import com.aaa.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 于永利
 * @since 2024-08-10
 */
@RestController
@RequestMapping("/tab-class")

public class TabClassController {

    // 查询所有的班级
    @Resource
    private ITabClassService tabClassService;

    @GetMapping
    public Result queryAll(){
        return Result.success(tabClassService.list());

    }

}
